package chapter67;

public class Student2 extends Person1 {
	public int sid;
	
	public Student2(){
		
	}
	
	public Student2(String name,int age,int sid){
		super(name,age);
		this.sid = sid;
	}

	/*public int getSid() {
		return sid;
	}

	public void setSid(int sid) {
		this.sid = sid;
	}*/
	
	public void sayHello(){
		super.sayHello();
		System.out.println("，我的学号是"+this.sid);
	}

}
